package com.iraeta.entity.main.vo;

import com.iraeta.entity.main.Oadanganrenyuan;

import java.util.ArrayList;
import java.util.List;

public class OADangAnRenYuanResult {
    public List<Oadanganrenyuan> insertList;        //需要插入数据
    public List<Oadanganrenyuan> updateList;
    public List<Oadanganrenyuan> deleteList;
    public List<String> exceptionList;
    private int insertCount;                     //实际插入的数据
    private int updateCount;
    private int deleteCount;
    private int exceptionCount;

    public OADangAnRenYuanResult() {
        this.insertList = new ArrayList<>();
        this.updateList = new ArrayList<>();
        this.deleteList = new ArrayList<>();
        this.exceptionList = new ArrayList<>();
        this.insertCount = 0;
        this.updateCount = 0;
        this.deleteCount = 0;
    }

    public int getInsertCount() {
        return insertCount;
    }

    public void setInsertCount(int insertCount) {
        this.insertCount = insertCount;
    }

    public int getUpdateCount() {
        return updateCount;
    }

    public void setUpdateCount(int updateCount) {
        this.updateCount = updateCount;
    }

    public int getDeleteCount() {
        return deleteCount;
    }

    public void setDeleteCount(int deleteCount) {
        this.deleteCount = deleteCount;
    }

    public void addInsertCount(){
        this.insertCount++;
    }
    public void addUpdateCount(){
        this.updateCount++;
    }
    public void addDeleteCount(){
        this.deleteCount++;
    }
    public int getExceptionCount() {
        return exceptionCount;
    }

    public void setExceptionCount(int exceptionCount) {
        this.exceptionCount = exceptionCount;
    }
}
